package com.cx.dao;

import com.cx.pojo.Student;
import org.springframework.stereotype.Repository;

/**
 * @auther: Centaury
 * @Date:2023/3/22 - 03 - 22 - 18:09
 */
@Repository
public class StudentDao {

    //自增主键
    public static Integer initId = 106;

    public void save(Student student){

        if(student.getId() == null){
            student.setId(initId++);
        }
        // employees.put(employee.getId(),employee);
    }
}
